/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package ormsamples;

import org.orm.*;
public class CreateBdcombustibleData {
	public void createTestData() throws PersistentException {
		PersistentTransaction t = orm.Bdprueba2PdsPersistentManager.instance().getSession().beginTransaction();
		try {
			orm.DAOFactory lDAOFactory = orm.DAOFactory.getDAOFactory();
			orm.dao.Tp_logDAO lormTp_logDAO = lDAOFactory.getTp_logDAO();
			orm.Tp_log lormTp_log = lormTp_logDAO.createTp_log();
			// TODO Initialize the properties of the persistent object here, the following properties must be initialized before saving : l_metodo_con, l_tiempo_de_calculo, l_resultado, l_parametros, l_hora
			lormTp_logDAO.save(lormTp_log);
			t.commit();
		}
		catch (Exception e) {
			t.rollback();
		}
		
	}
	
	public static void main(String[] args) {
		try {
			CreateBdcombustibleData createBdcombustibleData = new CreateBdcombustibleData();
			try {
				createBdcombustibleData.createTestData();
			}
			finally {
				orm.Bdprueba2PdsPersistentManager.instance().disposePersistentManager();
			}
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}
}
